package com.leased.service;

import com.leased.exception.DatabaseException;
import com.leased.pojo.AdvertInfo;
import com.leased.request.BaseQuery;
import com.leased.utils.Page;

/**
 * Created by shencx on 2017/8/9.
 */
public interface AdvertInfoService {

    Integer addAdvertInfo(AdvertInfo advertInfo) throws DatabaseException;

    Page<AdvertInfo> fetchAdvertInfoPage(BaseQuery baseQuery) throws DatabaseException;

    boolean updateAdvertInfo(AdvertInfo advertInfo) throws DatabaseException;

    AdvertInfo fetchAdvertInfoDetail(Integer id) throws DatabaseException;
}
